
package grade;

public class GradeRecord {
private int number;
private String title;
private int credits;
private double grade;
public GradeRecord(int number, String title, int credits, double grade) {
	this.number = number;
	this.title = title;
	this.credits = credits;
	this.grade = grade;
}

public int getNumber() {
	return number;
}

public String getTitle() {
	return title;
}

public int getCredits() {
	return credits;
}

public double getGrade() {
	return grade;
}

public String toString(){
	return this.number+" "+this.title+" "+this.credits+" "+this.grade;
}

public double tongDiem(){
	return (this.credits*this.grade);

}
public boolean diemLonHon(GradeRecord that){
	return (this.grade>that.grade);
}
}

